SQL Server Compact
part 6/10 · 14.4 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
SQL CE databases can be created and managed from Microsoft Visual Studio and some older versions of SQL Server Management Studio as well.cite-ref-feat-15-1[15]
File format
SQL CE databases reside in a single .sdf file,cite-ref-arch-17-0[17] which can be up to 4 GB in size.cite-ref-lap1-4-3[4] The .sdf file can be encrypted with 128-bit encryption for data security.cite-ref-arch-17-1[17] SQL CE runtime mediates concurrent multi-user access to the .sdf file. The .sdf file can simply be copied to the destination system for deployment, or be deployed through ClickOnce. SQL CE runtime has support for DataDirectories.cite-ref-new-6-1[6] Applications using an SQL CE database need not specify the entire path to an .sdf file in the ADO.NET connection string, rather it can be specified as |DataDirectory|\<database_name>.sdf, defining the data directory (where the .sdf database file resides) being defined in the assembly manifest for the application.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────